package com.kcwx.system.dtomap;

import org.mapstruct.*;
import com.kcwx.system.domain.SysNotice;
import com.kcwx.shareddomain.system.dto.SysNoticeEditDto;

/**
 * 通知公告 mapstruct
 *
 */
@Mapper(componentModel = "spring",unmappedSourcePolicy= ReportingPolicy.IGNORE,nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface SysNoticeMap {
    /** addDto to Entity*/
    @Mappings({@Mapping(target = "id", ignore = true)})
    SysNotice AddDtoToEntity(SysNoticeEditDto addDto);
    /** editDto to Entity*/
    SysNotice EditDtoToEntity(SysNoticeEditDto editDto);
}
